function BalanceModel() {
	this.state = this.createInitialState();
}

BalanceModel.prototype.createInitialState = function() {
	var fakeElementPosition = Math.floor(Math.random() * 10);

	var weights = [];
	for ( var i = 0; i < 9; i++) {
		var weight = (fakeElementPosition == i) ? 0.9 : 1;
		weights.push({
			weight : weight,
			id : i
		});
	}

	return {
		weightsHolder : weights,
		balanceLeftPlate : [],
		balanceRightPlate : []
	};
};

BalanceModel.prototype.getState = function() {
	return this.state;
};

/**
 * 
 * @param view
 * @returns {BalanceController}
 */
function BalanceController(view) {
	this.view = view;
	this.model = new BalanceModel();
	this.weightsHolder = new WeightsHolder(this);
}

BalanceController.prototype.startup = function() {
	this.view.init(this);
	this.view.update(this.model.getState());
};

BalanceController.prototype.getWeightsHolder = function() {
	return this.weightsHolder;
};

/**
 * 
 */
function WeightsHolder(controller) {
	this.controller = controller;
}

function WeightsHolder(controller) {

}
